package com.cma.service.impl;

import com.cma.dao.LogInfoRepository;
import com.cma.model.db.LogInfo;
import com.cma.service.LogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * @Author hbb
 * @Date 2017/2/9 17:11
 */
@Service
public class LogInfoServiceImpl implements LogInfoService{

    @Autowired
    private LogInfoRepository logInfoRepository;
    @PersistenceContext
    private EntityManager entityManager;
    /**
     * 保存或更新对象
     *
     * @param logInfo
     */
    @Override
    public void save(LogInfo logInfo) {
        logInfoRepository.save(logInfo);
    }
}
